﻿using D.Medicalcare.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace D.Medicalcare.Write.API.Application.Commands.MessageCommand
{
    /// <summary>
    /// 新增消息公告
    /// </summary>
    public class CreateMessageCommand : IRequest<APIResult<object>>
    {

        /// <summary>
        /// 主键
        /// </summary>
        public int MessageId { get; set; }
        /// <summary>
        /// 通知标题
        /// </summary>
        public string? Title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string? Content { get; set; }
        /// <summary>
        /// 上传者
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public string? CreateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Statue { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
